package gcb.metalsys.entity.cop;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CopClient extends Model<CopClient> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "client_id", type = IdType.AUTO)
    private Long clientId;

    private String clientName;

    private String clientIdCard;

    private String clientPhone;

    private String clientGender;

    private String clientEmail;

    private String clientAddress;

    private String clientMaritalStatus;

    private LocalDateTime clientBirthday;

    @TableField(exist = false)
    private int clientAge;


    @Override
    protected Serializable pkVal() {
        return this.clientId;
    }

}
